﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using com.paypal.sdk.util;

namespace InfoStuffStore
{
    public partial class FormExpressCheckOutPrint : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    NVPCodec decoder = new NVPCodec();
                    decoder = (NVPCodec)Session["result"];
                    lblTransactionID.Text = decoder["TRANSACTIONID"];
                    lblTransactionType.Text = decoder["TRANSACTIONTYPE"];
                    lblPaymentType.Text = decoder["PAYMENTTYPE"];
                    lblOrderTime.Text = decoder["ORDERTIME"];
                    lblAmount.Text = decoder["AMT"];
                    lblCurrency.Text = decoder["CURRENCYCODE"];
                    lblPaymentStatus.Text = decoder["PAYMENTSTATUS"];
                }

                if (Session["tprofile"] != null)
                {
                    string sessionData = Session["tprofile"].ToString();
                    Session.RemoveAll();
                    Session["profile"] = sessionData;
                }
            }
            catch
            {

            }
        }
    }
}